From: Keir Fraser Date: Tue, 12 Jan 2010 06:56:56 +0000 (+0000) Subject: xend, pciquirk: fix uninitialized variable X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~12761 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks://%22/%22http:/www.example.com/cgi/%22https:/%22bookmarks:/%22?a=commitdiff_plain;h=b57e4ee13e4b950ca5d75db23eb19789f19220d3;p=xen.git xend, pciquirk: fix uninitialized variable Fixes uninitialized variable when there's no PERMISSIVE_CONFIG_FILE Signed-off-by: Christoph Egger --- diff --git a/tools/python/xen/xend/server/pciquirk.py b/tools/python/xen/xend/server/pciquirk.py index eda3d1d459..ba56ebdf8b 100644 --- a/tools/python/xen/xend/server/pciquirk.py +++ b/tools/python/xen/xend/server/pciquirk.py @@ -117,14 +117,14 @@ class PCIQuirk: pci_perm_dev_config = [''] else: pci_perm_dev_config.insert(0, '') - self.pci_perm_dev_config = pci_perm_dev_config except Exception, ex: raise XendError("Reading config file %s: %s" % (PERMISSIVE_CONFIG_FILE,str(ex))) else: log.info("Config file does not exist: %s" % PERMISSIVE_CONFIG_FILE) - self.pci_perm_dev_config = ['xend-pci-perm-devs'] + pci_perm_dev_config = ['xend-pci-perm-devs'] + self.pci_perm_dev_config = pci_perm_dev_config devices = child_at(child(self.pci_perm_dev_config, 'unconstrained_dev_ids'),0) if self.__matchPCIdev( devices ):